<link rel="stylesheet" href="/static/admin/css/global.css" media="all">
<div class="admin-main layui-anim layui-anim-upbit">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>{:lang('admin')}{:lang('list')}</legend>
    </fieldset>
    <table class="layui-table" id="list" lay-filter="list"></table>
</div>
{include file="common/foot"/}
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-success layui-btn-xs" data-open="{:url('adminEdit')}?admin_id={{d.admin_id}}" data-title="员工信息编辑">编辑</a>

    {{# if(d.admin_id!=1){ }}

    <a class="layui-btn layui-btn-danger layui-btn-xs" data-request="auth/adminDel?admin_id={{d.admin_id}}" data-title="确定要删除当前员工账号吗？">删除</a>
    {{# } }}
</script>
<script type="text/html" id="open">
    {{# if(d.admin_id==1){ }}
        <input type="checkbox" disabled name="is_open" value="{{d.admin_id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="open" checked>
    {{# }else{  }}
        <input type="checkbox" name="is_open" value="{{d.admin_id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="open" {{ d.is_open == 1 ? 'checked' : '' }}>
    {{# } }}
</script>
<script type="text/html" id="lookiphone">
    {{# if(d.admin_id==1){ }}
        <input type="checkbox" disabled name="isphone" value="{{d.admin_id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="lookiphone" checked>
    {{# }else{  }}
        <input type="checkbox" name="isphone" value="{{d.admin_id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="lookiphone" {{ d.isphone == 1 ? 'checked' : '' }}>
    {{# } }}
</script>
<script type="text/html" id="is_poll">
    {{# if(d.admin_id==1){ }}
    <input type="checkbox" disabled name="is_poll" value="{{d.admin_id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="is_poll" checked>
    {{# }else{  }}
    <input type="checkbox" name="is_poll" value="{{d.admin_id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="is_poll" {{ d.is_poll == 1 ? 'checked' : '' }}>
    {{# } }}
</script>
<script type="text/html" id="topBtn">
    <button class="layui-btn layui-btn-normal layui-btn-sm" data-open="{:url('adminAdd')}" data-title="添加员工"><i class="fa fa-plus"></i> 添加员工</button>
    <button class="layui-btn layui-btn-sm layuimini-btn-primary" data-table-refresh="currentTableRenderId"><i class="fa fa-refresh"></i> </button>
</script>
<script>
    layui.use(['table','form'], function() {
        var table = layui.table,form = layui.form,$ = layui.jquery;


    });
</script>
